package com.insurance.common;

/**
 * Created with IntelliJ IDEA.
 * User: zdk
 * Date: 2020/10/23 10:45
 * Description: 分页返回实体
 * Version: V1.0
 */
public class PaginationResult<T> {
     private int currentPage; //当前页码数
     private int pageSize; //每页显示的条数
     private long totalSize; //总条数
     private long totalPage; //总页数
     private T dataList; //返回分页后的数据

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public long getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(long totalPage) {
        this.totalPage = totalPage;
    }

    public T getDataList() {
        return dataList;
    }

    public void setDataList(T dataList) {
        this.dataList = dataList;
    }
}
